package com.wc.AlgoOJ_train.train1.c0.A005;


import java.util.Scanner;

/**
 * @Author congege
 * @Description 成绩转换
 * http://43.138.190.70:8888/p/A005
 * @Date Created in 2023/12/24-21:24
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc=  new Scanner(System.in);
        while (sc.hasNextInt()){
            int score = sc.nextInt();
            judge(score);
        }
    }

    public static void judge(int num) {
        if (num < 0 || num > 100) {
            System.out.println("Score is error!");
        } else if (num <= 59) {
            System.out.println("E");
        } else if (num <= 69) {
            System.out.println("D");
        } else if (num <= 79) {
            System.out.println("C");
        } else if (num <= 89) {
            System.out.println("B");
        } else {
            System.out.println("A");
        }
    }
}
